home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 326 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.voicenet.com!news
  2. From: kobak@voicenet.com (Peter Kobak)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [Q] User input w/o printing
  5. Date: 3 Jan 1996 20:34:46 GMT
  6. Organization: Voicenet - Internet Access - (215)674-9290
  7. Message-ID: <4cep96$hap@news.voicenet.com>
  8. NNTP-Posting-Host: philly206.voicenet.com
  9. X-Newsreader: NeoLogic News for OS/2 [version: 4.2]
  10.  
  11. In message <4ccdfu$qu4@epx.cis.umn.edu> - stur0028@gold.tc.umn.edu (Paul A Stur
  12. m) writes:
  13. :>
  14. :>Okay, quick question:  How do I not have what is typed written to the screen?
  15. :>i.e., you're in an infinite loop, the user types in whatever, then each time
  16. :>at the end of the loop, I wanna deal with what was typed, but it's not to be
  17. :>displayed as they type it.
  18.  
  19. Many C implementations have _getch() in conio.h. _getch() returns a 
  20. character from the keyboard without echoing. If your compiler doesn't have 
  21. this, you'll have to use the keyboard as a device or file somehow for your 
  22. platform. On some platforms, it may be impossible.
  23.  
  24. ================
  25. Peter Kobak
  26. kobak@voicenet.com
  27.  
  28.  
  29.